package com.dayu.finecomm.mongo.pojo;

/**
 * Iot Device数据表字段
 * @author XuJialiang
 * @since 2017-10-19 14:45:12
 * @version V1.0.0
 */
public class IotDevice extends Basic<IotDevice> {
	private static final long serialVersionUID = 1L;
	
	/**
	 * 设备ID
	 */
	private static final String FIELD_DEVID = "devId";
	
	/**
	 * 应用ID
	 */
	private static final String FIELD_APPID = "appId";
	
	/**
	 * 
	 */
	private static final String FIELD_VERIFYCODE = "verifyCode";
	
	/**
	 * 
	 */
	private static final String FIELD_TIMEOUT = "timeout";
	
	/**
	 * 南向设备注册时，如果走DTLS加密通道，则须用到该参数
	 */
	private static final String FIELD_PSK = "psk";
	
	/**
	 * 设备类型
	 */
	private static final String FIELD_DEVTYPE = "deviceType";
	
	/**
	 * 厂商ID，唯一标识一个厂商
	 */
	private static final String FIELD_MFRSID = "mfrsId";
	
	/**
	 * 厂商名
	 */
	private static final String FIELD_MFRSNAME = "mfrsName";
	
	/**
	 * 设备型号，由厂商定义
	 */
	private static final String FIELD_MODEL = "model";
	
	/**
	 * 协议类型， NB-IoT应用协议选择CoAP
	 */
	private static final String FIELD_PROTOTYPE = "protocolType";
	
	public String getDeviceId() {
		return getString(FIELD_DEVID);
	}
	
	public void setDeviceId(String devId) {
		put(FIELD_DEVID, devId);
	}
	
	public String getAppId() {
		return getString(FIELD_APPID);
	}
	
	public void setAppId(String appId) {
		put(FIELD_APPID, appId);
	}
	
	public String getVerifyCode() {
		return getString(FIELD_VERIFYCODE);
	}
	
	public void setVerifyCode(String verifyCode) {
		put(FIELD_VERIFYCODE, verifyCode);
	}
	
	public int getTimeout() {
		return getInt(FIELD_TIMEOUT);
	}
	
	public void setTimeout(int timeout) {
		put(FIELD_TIMEOUT, timeout);
	}
	
	public String getPsk() {
		return getString(FIELD_PSK);
	}
	
	public void setPsk(String psk) {
		put(FIELD_PSK, psk);
	}
	
	public String getDeviceType() {
		return getString(FIELD_DEVTYPE);
	}
	
	public void setDeviceType(String devType) {
		put(FIELD_DEVTYPE, devType);
	}
	
	public String getMfrsId() {
		return getString(FIELD_MFRSID);
	}
	
	public void setMfrsId(String mfrsId) {
		put(FIELD_MFRSID, mfrsId);
	}
	
	public String getMfrsName() {
		return getString(FIELD_MFRSNAME);
	}
	
	public void setMfrsName(String mfrsName) {
		put(FIELD_MFRSNAME, mfrsName);
	}
	
	public String getModel() {
		return getString(FIELD_MODEL);
	}
	
	public void setModel(String model) {
		put(FIELD_MODEL, model);
	}
	
	public String getProtocolType() {
		return getString(FIELD_PROTOTYPE);
	}
	
	public void setProtocolType(String type) {
		put(FIELD_PROTOTYPE, type);
	}
}
